﻿@model IEnumerable<CVsharp.DWZMvc.Models.DSA_GradeConfig>     
<form id="pagerForm" method="post" action="/Review/ConfigList/">
	    <input type="hidden" name="ProjectClassifications" value="@ViewBag.ProjectClassification" />
	    <input type="hidden" name="numPerPage" value="@ViewBag.numPerPage" />
        <input type="hidden" name="pageNum" value="@ViewBag.pageNum" />
    </form>

    <div class="pageHeader">
    <h2 style="font-size: medium;">查看考核配置</h2>
     <!--<搜索栏>-->
	    <form onsubmit="return navTabSearch(this);" action="/Review/ConfigList/" method="post">      
	    <div class="searchBar">
		    <ul class="searchContent">
			    <li>
				    <label>分类搜索：</label>
			    
                <select class="combox" id="ProjectClassification" name="ProjectClassification">
				    <option value="">所属内容</option>
                    @foreach (var i in ViewBag.selecttype) 
                    {
                        if (ViewBag.ProjectClassification != null && ViewBag.ProjectClassification == Convert.ToInt32(i.DictID))
                        {
                            <option value="@i.DictID" selected="selected">@i.ValueString</option> 
                        }
                        else
                        {
                        <option value="@i.DictID">@i.ValueString</option>
                        }
                    }
			    </select>
			    </li>
                <div class="buttonActive"><div class="buttonContent"><button type="submit" id="btnSubmit">检索</button></div></div>
		    </ul>
	    </div>        
	    </form>
        <!--</搜索栏>-->
    </div>
    <div class="pageContent">
	    <div class="panelBar">
		    <ul class="toolBar">
			    <li>			       
                     <a class="add" target="dialog" href="GradeManage/GradeConfigAdd.aspx">
                     <span>添加配置</span>
                     </a>
                 </li>
			    <li>
                <a class="delete" href="GradeManage/GradeConfigHandler.ashx?title=delete" posttype="string" rel="ids" target="selectedTodo" title="确实要删除这些记录吗?">
<span>批量删除</span>
</a>
                </li>
			    <li class="line">line</li>
			    <li><a class="icon" href="javascript:void(0);"><span>导入EXCEL</span></a></li>
		    </ul>
	    </div>
	    <table class="table" width="100%" layoutH="128">
		    <thead>
			    <tr>
				    <th width="30"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				    <th width="40" class="asc">ID</th>
				    <th width="80">项目分类</th>
				    <th width="120">评分内容</th>
				    <th width="40" >评分最高值</th>
                    <th width="250">标准规定</th>
				    <th width="250">评分说明</th>				    
				    <th width="70">操作</th>
			    </tr>
		    </thead>
		    <tbody>
                @foreach (var i in Model)
                {
                    CVsharp.DWZMvc.Models.yjjDBEntities db = new CVsharp.DWZMvc.Models.yjjDBEntities();
                    <tr >
                            <td><input name="ids" type="checkbox" value="@i.GradeConfigID" />
                            <td>@i.GradeConfigID</td>
                            <td>@db.sys_dict.Where(m => m.DictID == i.ProjectClassification).FirstOrDefault().Name</td>
                            <td title="@i.GradeContent">@i.GradeContent</td>
                            <td>@i.GradeMax</td>
                            <td title="@i.StandardRule">@i.StandardRule</td>
                            <td title="@i.GradeExplanation">@i.GradeExplanation</td>
                            <td>                    
					            <a title="删除" target="ajaxTodo" href="#" class="btnDel">删除</a>
					            <a title="编辑" target="dialog" href="#" class="btnEdit">编辑</a>                      				    
                            </td>
                        </tr>
                }
                                  
                </tbody>
	    </table>
	    <div class="panelBar">
		    <div class="pages">
			    <span>显示</span>
			    <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})" >
                    <option value="@ViewBag.numPerPage"></option>
				    <option value="10">10</option>
                    <option value="20">20</option>
				    <option value="30">30</option>
				    <option value="50">50</option>
                    <option value="100">100</option>
			    </select>
			    <span>条，共@(ViewBag.totalnum)条</span>
		    </div>		
		    <div class="pagination" targetType="navTab" totalCount="@(ViewBag.totalnum)" numPerPage="@ViewBag.numPerPage" pageNumShown="@(ViewBag.totalnum / ViewBag.numPerPage)" currentPage="@ViewBag.pageNum"></div>
	    </div>
    </div>
